package  
{
	import net.flashpunk.tweens.misc.VarTween;
	import net.flashpunk.World;
	import net.flashpunk.graphics.Image;

	/**
	 * ...
	 * @author Donatello
	 */
	public class EndScene extends World
	{
		[Embed(source = "img/cover.png")]	private const IMG_BACK:Class;
		private var imgBack:Image;
		
		private var tweenFinal:VarTween;
		
		public function EndScene() 
		{
			
			imgBack = new Image(IMG_BACK);
			imgBack.x = 200;
			imgBack.y = 0;
			imgBack.alpha = 0;
			addGraphic(imgBack);
		
			tweenFinal = new VarTween();
			addTween(tweenFinal);
		
			add(new Dialog("FIN", 400, 500, 10, 500));
			
			tweenFinal.tween(imgBack, "alpha", 1, 5);
			
		}
		
		
		override public function update():void
		{
			
			super.update();
		}
		
	}

}